<table class="table table-border table-bordered table-hover table-bg">
	<thead>
		<tr class="text-c">
			<th>编号</td>
			<th>房间号</td>
			<th>类型</td>
			<th>设备ID</td>
			<th>前一次读数</td>
			<th>当前读数</td>
			<th>费率(元)</td>
			<th>抄表时间</td>
			<th>前一次抄表时间</td>
			<th>使用金额(元)</td>
			<th>状态</td>
		</tr>
	</thead>
	<tbody>
		<?php if(is_array($list) && count($list)){ foreach($list as $k=>$ls){ ?>
			<?php $rowspan = count($ls['list']); foreach($ls['list'] as $kk=>$lls){ ?>
				<tr class="text-c">
				<?php if($kk==0){ ?>
					<td rowspan="{$rowspan}" style="background-color: #ffffff"><?php echo ($page-1)*C('PAGE_SIZE')+($k+1); ?></td>
					<td rowspan="{$rowspan}" style="background-color: #ffffff">{$ls['roomnumber']}</td>
				<?php } ?>
					<td>{$lls['eqmtitle']}</td>
					<td>{$lls['eqmnumber']}</td>
					<td>{$lls['stopnumber']/10}</td>
					<td>{$lls['last_number']/10}</td>
					<td>{$lls['rates']}</td>
					<td><?php echo date('Y-m-d H:i', $lls['last_times']); ?></td>
					<td><?php echo date('Y-m-d H:i', $lls['stop_times']); ?></td>
					<td><?php echo '-'.($lls['last_number'] - $lls['stopnumber'])/10 * $lls['rates']; ?></td>
					<td><?php echo $lls['status'] == 1 ? '启用' : '停用'; ?></td>
				</td>
			<?php } ?>
		<?php }}else{ ?>
		<tr class="text-c">
			<td colspan="14">暂无数据...</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<!--page-->
<include file="Common/page" />